/* $Id: SecretQuestionDAOImpl.java 
 * Copyright (C) 2011, TRAKHEES
 *  
 * Revision History
 *
 * Date  			Author 		    	Remarks
 * ---------------------------------------------------------------------------------
 *
 */
package ae.pcfc.etks.online.common.dao.provider;

import java.util.List;

import org.hibernate.criterion.Order;

import ae.pcfc.etks.online.common.dao.SecretQuestionDAO;
import ae.pcfc.etks.online.common.domain.SecurityQuestion;

public class SecretQuestionDAOImpl extends BaseDAO implements SecretQuestionDAO {
	
	/**
	 * getSecretQuestionList
	 * 
	 * @see ae.pcfc.etks.online.common.dao.SecretQuestionDAO#getSecretQuestionList()
	 * 
	 */
	@SuppressWarnings("unchecked")
	public List<SecurityQuestion> getSecretQuestionList(){
		return getHibernateTemplate().getSessionFactory().getCurrentSession().createCriteria(SecurityQuestion.class).addOrder( Order.asc("securityQuestion") ).list();
	}
}
